FROM nginx:1.25.1

WORKDIR /

RUN mkdir /etc/nginx/conf.d/ -p

COPY  ./dist/ /usr/share/nginx/html/

# nginx容器内配置文件的默认目录就在/etc/nginx下，所以我们将配置文件复制到/etc/nginx/目录下
COPY ./conf/default.conf /etc/nginx/conf.d/

COPY ./conf/nginx.conf /etc/nginx/

EXPOSE 8068

CMD ["nginx", "-g", "daemon off;"]
